package org.masterview.user.client.ui;

import java.util.Comparator;
import java.util.Date;

public class DateComparator implements Comparator
{
    public int compare(Object o1, Object o2) {
        Date d1 = (Date) o1;
        Date d2 = (Date) o2;
        return d1.before(d2) ? -1 : 1;
    }
}